package com.yellowpage.nsp.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * NspLogSum entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "NSP_LOG_SUM")
public class NspLogSum implements java.io.Serializable {

	// Fields

	private Integer logSumId;
	private Integer serverId;
	private String logFileName;
	private String logTime;
	private String requestType;
	private String requestContent;
	private String responseCode;
	private String responseContent;
	private Integer count;
	private String status;
	private Integer createUser;
	private Date createTime;
	private String note;

	// Constructors

	/** default constructor */
	public NspLogSum() {
	}

	/** minimal constructor */
	public NspLogSum(Integer serverId) {
		this.serverId = serverId;
	}

	/** full constructor */
	public NspLogSum(Integer serverId, String logFileName, String logTime,
			String requestType, String requestContent, String responseCode,
			String responseContent, Integer count, String status,
			Integer createUser, Date createTime, String note) {
		this.serverId = serverId;
		this.logFileName = logFileName;
		this.logTime = logTime;
		this.requestType = requestType;
		this.requestContent = requestContent;
		this.responseCode = responseCode;
		this.responseContent = responseContent;
		this.count = count;
		this.status = status;
		this.createUser = createUser;
		this.createTime = createTime;
		this.note = note;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "LOG_SUM_ID", unique = true, nullable = false)
	public Integer getLogSumId() {
		return this.logSumId;
	}

	public void setLogSumId(Integer logSumId) {
		this.logSumId = logSumId;
	}

	@Column(name = "SERVER_ID", nullable = false)
	public Integer getServerId() {
		return this.serverId;
	}

	public void setServerId(Integer serverId) {
		this.serverId = serverId;
	}

	@Column(name = "LOG_FILE_NAME", length = 64)
	public String getLogFileName() {
		return this.logFileName;
	}

	public void setLogFileName(String logFileName) {
		this.logFileName = logFileName;
	}

	@Column(name = "LOG_TIME", length = 64)
	public String getLogTime() {
		return this.logTime;
	}

	public void setLogTime(String logTime) {
		this.logTime = logTime;
	}

	@Column(name = "REQUEST_TYPE", length = 10)
	public String getRequestType() {
		return this.requestType;
	}

	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}

	@Column(name = "REQUEST_CONTENT", length = 128)
	public String getRequestContent() {
		return this.requestContent;
	}

	public void setRequestContent(String requestContent) {
		this.requestContent = requestContent;
	}

	@Column(name = "RESPONSE_CODE", length = 20)
	public String getResponseCode() {
		return this.responseCode;
	}

	public void setResponseCode(String responseCode) {
		this.responseCode = responseCode;
	}

	@Column(name = "RESPONSE_CONTENT", length = 128)
	public String getResponseContent() {
		return this.responseContent;
	}

	public void setResponseContent(String responseContent) {
		this.responseContent = responseContent;
	}

	@Column(name = "COUNT")
	public Integer getCount() {
		return this.count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	@Column(name = "STATUS", length = 20)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "NOTE", length = 128)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

}